<?php
$this->breadcrumbs=array(
        "Fragebogen"=>array('/questionnaire'),
        "Prüfung"
);
$this->pageTitle="Prüfungen";
?>
<h1>Prüfungen</h1>
<div>

<p>
<table>
    <thead><tr><td>Typ</td><td>Name</td><td>Aktion</td></tr></thead>
<?php
//echo sizeof($model);
//print_r( $model[0]->getAttributes() );
//if (sizeof($model)==1) echo $model->user;
foreach($model as $e){
    echo '<tr><td>'.Lookup::item('ExamType', $e->type).'</td><td>'.$e->name;
    echo '</td><td>'.CHtml::link('starten',array('/exam/answer/id/'.$e->id)).'</td></tr>';
}
?>
    </table>
</p>
</div>